<table class="table">
<% for project in @projects -%>
	<tr class="<%= cycle('even', 'odd')+'_list' %>">
		<td><%= link_to project.name, :controller => 'project', :action => 'show', :project => project %></td>
		<td><%= link_to 'Print overview', :controller => 'project', :action => 'print', :project => project %></td>
		<%= ('<td>' + link_to('edit', :controller => 'project', :action => 'edit', :project => project) + '</td>') if @current_user.has_role?('project_admin') %>
		<%= ('<td>' + link_to('close', :controller => 'project', :action => 'close', :project => project) + '</td>') if @current_user.has_role?('project_admin') %>
	</tr>
<% end -%>
</table>
<br />
<br />
<%= link_to 'all projects', :controller => 'project', :action => 'list_active' %>